﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Suucha.Expressions;
using Newtonsoft.Json;

namespace Suucha.Expression.Tests
{
    [TestClass]
    public class EnumTest
    {
        [TestMethod]
        public void TestEnum()
        {
            var list = TestClass2.CreateTestData();
            SuuchaExpression expression = SuuchaExpression.Equal("Type", 0);
            var result = list.AsQueryable().Where(expression).ToList();
            Assert.AreEqual(2, result.Count);

        }
    }
}
